module.exports = app => {
    const { router, controller } = app;
    const va = app.middleware.user.validateAdmin();

    router.get('/common/getCaptcha', controller.common.getCaptcha);

    router.post('/common/sendEmail', va, controller.common.sendEmail);

    router.post('/common/upFile', va, controller.common.upFile);

    router.post('/common/delFile', controller.common.delFile);
}